package sugarbind_input

class Glycoconjugate_Type {

	String glycoconjugate_Type_Name
	Glycoconjugate_Type glycoconjugate_Type_Parent
	
    static constraints = {
		glycoconjugate_Type_Name(nullable:false)
		glycoconjugate_Type_Parent(nullable:true)
		glycoconjugate_Type_Name(unique:true)
		
		ligands(nullable:true)
		
		
    }
	
	static hasMany = [ligands: Ligand]
	
	static mapping = {
	//		id column: 'ligand_id'
			id generator: 'sequence', params: [sequence: 'glycoconjugate_type_id_seq']
			
			
		}
		
		public String toString(){			
			 glycoconjugate_Type_Name
		}
}
